package l.l.test.learnMap;
import java.util.Scanner;
/**
 * Created by llw on 2018/3/27/0027.
 */
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int k=sc.nextInt();
        int sum1=0;
        for(int i=1;i<=n-k;i++){
            sum1=sum1+i;
        }
        for(int x=k+1;x<=n;x++){

            int sum2=0;
            int z=x/2;
            if(z>k){
                sum2=n-k-z;
            }
            for(int y=z+1;y>k;y--){
                if(x%y>=k){
                    sum2++;
                }
            }
            sum1=sum1+sum2;
        }
        System.out.println(sum1);


    }
}
